<template>
  <a-layout id="components-layout-demo-top-side-2">
    <Header></Header>
    <a-layout>
      <Sider></Sider>
      <a-layout-content
          :style="{ background: '#fff', padding: '24px', margin: 0, minHeight: '280px' }"
      >
        <router-view></router-view>
      </a-layout-content>
    </a-layout>
  </a-layout>
</template>
<script setup>
import { ref, onMounted} from 'vue';
import Header from '@/components/Header'
import Sider from '@/components/Sider'
import axios from "axios";
import {notification} from "ant-design-vue";
const count = ref(0)
onMounted(async () => {
  const res = await axios.get('/member/member/count')
  const data = res.data
  if (data.success) {
    count.value = data.content
  } else {
    notification.error({description: data.message})
  }
})


</script>
<style scoped>
</style>